package work.Work6;

class Frog extends Animal implements Swim {
    public Frog() {
        super();
    }

    public Frog(int age) {
        super(age);
    }

    @Override
    public void swiming() {
        System.out.println("青蛙会蛙泳");
    }

    @Override
    public void eat() {
        System.out.println("青蛙吃小虫");
    }
}
